#include<stdio.h>
struct linkNode
{
    int value;
    struct linkNode*next;
    
};
struct linkNode orderbyScore(struct linkNode* head) //按餐馆分数从高到低排序 
{ 
    struct linkNode*L=head;
    struct linkNode*p;
    struct linkNode*p1;
    struct linkNode*p3=head;
    int i,j,n,t; 
    n = 1; //记录店铺总数；
    for (;p3->next!=NULL;p3=p3->next )
    {
        n++;
    }//计算n个数；
    for (i=1; i < n; i++)
    {
        L=head;
        for (j = i+1; j<=n; j++)
        {
            p=L;
            p1=L->next;
            if (p->value < p1->value)
            {
                t=p->value;
                p->value=p1->value;
                p1->value=t;
            }
            L=L->next;
        }
        
    }
    return *head;
}